<template>
  <div class="favor" ref="favorRef">
    <div v-for="(item, index) in 100" :key="index">favor{{ index + 1 }}</div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import useScrollLoad from '@/hooks/useScroll'

const favorRef = ref()
useScrollLoad(favorRef)
</script>

<style lang="scss" scoped>
.favor {
  height: 100%;
  overflow: auto;
  height: 300px;
  background-color: var(--primary-color);
}
</style>
